home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / essent / FIXES / CSeries.exe / issue99 / CPROG7.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-05  |  777 b   |  25 lines

  1. /* CPROG7.CPP - One to try with the debugger
  2.  
  3. Shrink this window so it only occupies half the screen
  4.  - drag its lower right-hand corner with the mouse, or press Ctrl+F5
  5.    then use shift + up cursor / shift + down cursor, then Esc to
  6.    finish re-sizing.
  7. Go to the Window menu and select Watch.
  8. Go to Debug, Watches, Add watch
  9. In the watch expression box enter i and press Return
  10. Ignore any messages about i being an undefined symbol
  11. Make sure this window (the source code) is the active one.
  12. Keep pressing F8 to have the IDE compile the program then step through
  13. the source code a line at a time. You can see the value of i change
  14. and see which instruction is currently executing */
  15.  
  16. #include <stdio.h>
  17.  
  18. main()
  19. {
  20. int i;
  21.     i=0;
  22.     while( i < 6 )
  23.         i++;
  24. }
  25.